﻿function btnsave()
{
$('StxtCommInput').style.display="none";
var txtCommInput=$('txtCommInput').value;
if(txtCommInput.length>999||txtCommInput.length<1)
{
 $('StxtCommInput').style.display="";   return;
}
showProgressBar(true);
$get("btnCommInput").disabled=true;
  WebServices.User.Teach.SetSesStateC(sid,memberno,txtCommInput,onners);
}
function onners(re)
{  
    if(re[0])
    {
       showProgressBar(false);
       WebServices.User.Teach.SendSesStateC(re[1],  sname, tname, sid, re[2]);
       top.location='/session/session.htm?sid='+sid;
        
    }
}
function cucancel()
{
 var refer = document.referrer.toLowerCase();
    if(refer=="")
    {
        top.location = "/";
    }    
    else
    {
        window.location.href = refer;
    }
}